import getpass

username = getpass.getuser()
password = getpass.getpass('password: ')

print(username, password)